<template>
  <Swiper class="detail-swiper">
    <SwiperItem v-for="(item, index) in topImages" :key="index">
      <img :src="item" alt="">
    </SwiperItem>
  </Swiper>
</template>

<script>
import { Swiper, SwiperItem } from 'components/common/swiper/index';
export default {
  name: 'DetailNavBar',
  props: {
    topImages: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  components: {
    Swiper,
    SwiperItem
  },
  created() {
    
  },
  mounted() {
    // console.log(this.topImages);
    
    
  }

}
</script>

<style scoped>
  .detail-swiper{
    height: 300px;
    overflow: hidden;
    text-align: center;
  }
  .detail-swiper img{
    width: 100%;
  }
</style>